package org.spiderflow.permission.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.spiderflow.permission.entity.Permission;
import org.spiderflow.permission.entity.SysUserPermisson;
import org.spiderflow.permission.mapper.PermissionMapper;
import org.spiderflow.permission.mapper.SysUserPermissionMapper;
import org.spiderflow.permission.service.PermissionService;
import org.spiderflow.permission.service.SysUserPermissionService;
import org.spiderflow.permission.vo.AddPermissionRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Nicky.Tang on 2020/4/16 11:48 AM
 *
 * @since 02.12.10
 */
@Service
public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionMapper, SysUserPermisson> implements SysUserPermissionService {
    @Autowired
    SysUserPermissionMapper sysUserPermissionMapper;
    @Override
    public void removePermission(AddPermissionRequest request) throws Exception {
        sysUserPermissionMapper.removePermission(request);
    }
}
